import { Component, PureComponent } from "react"
class Dong extends PureComponent {
    constructor() {
        super()
        this.state = {
            a: {
                b: 1
            }
        }
    }
    componentDidMount() {//生命周期
        setTimeout(() => {
            this.state = {
                a: {
                    b: 1
                }
            }
            this.setState(this.state)
        }, 2000)
    }
    render() {
        console.log(111);
        return (
            <div>
                <h1>我是Dong组件{this.state.a.b}</h1>
            </div>
        )
    }
}
export default Dong